<?php

namespace App\Http\Lib;

class Validator
{
    public static function useValidator($data,$rules){
        $validator = validator($data,$rules);
        return $validator;
    }

    public static function doValidator($data,$rules){
        $validator = validator($data,$rules);
        if($validator->fails()){
            return false;
        }
    }
}
